namespace java thrift.generated
namespace py py.thrift.generated

typedef i16 short
typedef i32 int
typedef i64 long
typedef bool hoolean
typedef string String


struct Person {
    1: optional string username,
    2: optional int age,
    3: optional hoolean married
}

exception DataException {
    1: optional string message,
    2: optional string callStack,
    3: optional string data
}


service PersonService {
    Person getPersonByUsername(1: required string username) throws (1:DataException dataxception),

    void savePerson(1: required Person person) throws(1: DataException dataException)
}